<extend name="Public/base"/>

<block name="body">
    <script type="text/javascript" src="__STATIC__/uploadify/jquery.uploadify.min.js"></script>
    <div class="main-title">
        <!--<h2>{$info['id']?'编辑':'新增'}轮播图</h2>-->
        <h2>新增属性</h2>
    </div>
    <form action="{:U('Goodsattr/add')}" method="post" class="form-horizontal">
        <div class="form-item">
            <label class="item-label">属性名称</label>
            <div class="controls">
                <input type="text" class="text input-large" name="attr_name" value="">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">属性值</label>
            <div class="controls">
                <input type="text" class="text input-large" name="val_name" value="">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">属性分类<span class="check-tips">（网站)</span></label>
            <div class="controls">
                <select name="type_id">
                        <!--<option value="0">顶级分类</option>-->
                    <volist name="Menus" id="menu">
                        <option value="{$menu.id}">{$menu.title_show}{$menu.name}</option>
                    </volist>
                </select>
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">排序<span class="check-tips">（用于分组显示的顺序）</span></label>
            <div class="controls">
                <input type="text" class="text input-small" name="rank" value="{$info.rank|default=0}">
            </div>
        </div>

        <div class="form-item">
            <button class="btn submit-btn" id="submit" type="submit" target-form="form-horizontal">确 定</button>
            <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
        </div>
    </form>
</block>

<block name="script">
    <script type="text/javascript">
//        Think.setValue("pid", {$info.pid|default = 0});
        Think.setValue("recommend", 0);
        //导航高亮
        $('.side-sub-menu').find('a[href="{:U('index')}"]').closest('li').addClass('current');
    </script>
</block>
